#pragma once

// Exclude rarely-used stuff from Windows headers
#define WIN32_LEAN_AND_MEAN

// Windows Header Files
#include <Windows.h>

// Inline function for unprotecting memory addresses
// Adapted from Vice Players <Client/game/util.cpp>
inline void Unprotect(DWORD dwAddress, size_t sSize)
{
	DWORD dwOldProt;
	VirtualProtect
	(
		(LPVOID)(dwAddress),
		sSize,
		PAGE_EXECUTE_READWRITE,
		&dwOldProt
	);
}